package com.character.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * (Role)表实体类
 *
 * @author cc
 * @since 2021-12-02 16:20:33
 */
@SuppressWarnings("serial")
@TableName("tbl_role")
@Data
public class Role extends Model<Role> {
    //角色ID
    @TableId(value = "id" ,type = IdType.AUTO)
    private Integer id;
    //角色名
    private String roleName;
    //角色关键字
    private String roleKey;
    //显示顺序，用于排序
    private Integer roleSort;
    //状态(0正常1停用)
    private Integer status;
    //备注
    private String remark;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //创建人
    private String creator;
    //修改人
    private String updater;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    //逻辑删除位,0存在1删除
    private int flag;



}
